<template>
  <div>
    <div class="component-mainHeader">
      <div class="top">
        <div class="topleft">
          <p>
            <span class="iconfont" style="color:#1abc9a;margin-right:3px;">&#xe607;</span>汇聚光交反馈表
          </p>
        </div>
        <div class="topright">
          <el-button type="info" @click="$router.go(-1)">
            <span style="font-weight:700;margin-right:5px;" class="iconfont">&#xe606;</span>返回
          </el-button>
        </div>
      </div>
    </div>
    <div class="component-listHeader">
      <div class="search-header">
        <div class="left-title">
          <p class="left-text">
            <span class="iconfont">&#xe61e;</span>
            汇聚光交反馈表
          </p>
          <div class="right">
            <button @click="outputExcel" style="width:100px;">导出Excel</button>
          </div>
        </div>
      </div>
    </div>
    <div class="main">
      <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick" class="tabs">
        <el-tab-pane label="表一-七级地址" name="first">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    列表
                  </p>
                  <div class="right">
                    <!-- <button style="width:130px;" @click="outputExcel">导出Excel</button> -->
                  </div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="tableOne"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column
                    label="本级地址名称（第一级-第七级）"
                    align="center"
                    width="120"
                    prop="addressName"
                  ></el-table-column>
                  <el-table-column label="地址级别" align="center" width="120" prop="addressLevel"></el-table-column>
                  <el-table-column label="经度（从光交反馈表上提取）" align="center" width="120" prop="lng"></el-table-column>
                  <el-table-column label="纬度（从光交反馈表上提取）" align="center" width="120" prop="lat"></el-table-column>
                  <el-table-column label="第一级（市级）" align="center" width="120" prop="levelFirst"></el-table-column>
                  <el-table-column label="第二级（区域）" align="center" width="120" prop="levelSecond"></el-table-column>
                  <el-table-column label="第三级（镇级）" align="center" width="120" prop="levelThird"></el-table-column>
                  <el-table-column label="第四级（道路）" align="center" width="120" prop="levelFourth"></el-table-column>
                  <el-table-column label="第五级（小区名称）" align="center" width="120" prop="levelFifth"></el-table-column>
                  <el-table-column label="第六级（楼栋名称）" align="center" width="120" prop="levelSixth"></el-table-column>
                  <el-table-column label="第七级（户数编号）" align="center" width="120" prop="levelSeventh"></el-table-column>
                  <el-table-column label="网络来源（固定）" align="center" width="120" prop>{{'1'}}</el-table-column>
                  <el-table-column label="接入方式（固定）" align="center" width="120" prop>{{'1'}}</el-table-column>
                  <el-table-column label="第三方名称" align="center" width="120" prop></el-table-column>
                  <el-table-column label="第三方联系方式" align="center" width="120" prop></el-table-column>
                  <el-table-column label="覆盖场景类型（固定）" align="center" width="120" prop>{{'7'}}</el-table-column>
                  <el-table-column label="地域属性（固定）" align="center" width="120" prop>{{'1'}}</el-table-column>
                  <el-table-column label="备注" align="center" width="120" prop>{{'1'}}</el-table-column>
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="表二-光分箱覆盖地址" name="second">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    列表
                  </p>
                  <div class="right">
                    <!-- <button style="width:130px;" @click="outputExcel">导出Excel</button> -->
                  </div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="tableTwo"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column label="设备箱体" align="center" width="120" prop="equipmentBox"></el-table-column>
                  <el-table-column label="地址全称" align="center" prop="fullAddress"></el-table-column>
                  <el-table-column
                    label="是否标准地址"
                    align="center"
                    width="120"
                    prop="isStandardAddress"
                  ></el-table-column>
                  <el-table-column label="覆盖方式" align="center" width="120" prop="coverageMode"></el-table-column>
                  <!-- <el-table-column label="光交接箱AB面" align="center" width="120" prop="boxABSurface"></el-table-column> -->
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="表二-分光器覆盖地址" name="third">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    列表
                  </p>
                  <div class="right">
                    <!-- <button style="width:130px;" @click="outputExcel">导出Excel</button> -->
                  </div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="tableThree"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column label="设备箱体" align="center" width="120" prop="equipmentBox"></el-table-column>
                  <el-table-column label="地址全称" align="center" prop="fullAddress"></el-table-column>
                  <el-table-column
                    label="是否标准地址"
                    align="center"
                    width="120"
                    prop="isStandardAddress"
                  ></el-table-column>
                  <el-table-column label="覆盖方式" align="center" width="120" prop="coverageMode"></el-table-column>
                  <!-- <el-table-column label="光交接箱AB面" align="center" width="120" prop="boxABSurface"></el-table-column> -->
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="表三-一级分光器表" name="fourth">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    列表
                  </p>
                  <div class="right">
                    <!-- <button style="width:130px;" @click="outputExcel">导出Excel</button> -->
                  </div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="tableFour"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column
                    label="分光器名称"
                    align="center"
                    width="120"
                    prop="opticalSplitterName"
                  ></el-table-column>
                  <el-table-column label="别名" align="center" width="120" prop="alias"></el-table-column>
                  <el-table-column label="厂家名称" align="center" width="120" prop="manufacturerName"></el-table-column>
                  <el-table-column label="分光比" align="center" width="120" prop="spectralRatio"></el-table-column>
                  <el-table-column label="生命周期状态" align="center" width="120" prop="lifeCycleState"></el-table-column>
                  <el-table-column label="所属区域" align="center" width="120" prop="respectiveRegion"></el-table-column>
                  <el-table-column
                    label="所属对象类型"
                    align="center"
                    width="120"
                    prop="subordinateObjectType"
                  ></el-table-column>
                  <el-table-column label="所属对象" align="center" width="120" prop="subordinateObject"></el-table-column>
                  <el-table-column label="产权" align="center" width="120" prop="propertyRight"></el-table-column>
                  <el-table-column
                    label="维护部门"
                    align="center"
                    width="120"
                    prop="maintenanceDepartment"
                  ></el-table-column>
                  <el-table-column label="所属工程" align="center" width="120" prop="projectBelong"></el-table-column>
                  <el-table-column
                    label="固定资产编号"
                    align="center"
                    width="120"
                    prop="fixedAssetsNumber"
                  ></el-table-column>
                  <el-table-column label="备注" align="center" width="120" prop="remark"></el-table-column>
                  <el-table-column
                    label="设备安装地址"
                    align="center"
                    width="120"
                    prop="splitterMountingPosition"
                  ></el-table-column>
                  <el-table-column label="光交接箱AB面" align="center" width="120" prop="boxABSurface"></el-table-column>
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="表三-二级分光器表" name="fifth">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    列表
                  </p>
                  <div class="right">
                    <!-- <button style="width:130px;" @click="outputExcel">导出Excel</button> -->
                  </div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="tableFive"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column label="分光器名称" align="center" width="150" prop="opticalSplitterName"></el-table-column>
                  <el-table-column label="别名" align="center" width="120" prop="alias"></el-table-column>
                  <el-table-column label="厂家名称" align="center" width="120" prop="manufacturerName"></el-table-column>
                  <el-table-column label="分光比" align="center" width="100" prop="spectralRatio"></el-table-column>
                  <el-table-column label="生命周期状态" align="center" width="100" prop="lifeCycleState"></el-table-column>
                  <el-table-column label="所属区域" align="center" width="120" prop="respectiveRegion"></el-table-column>

                  <el-table-column label="所属对象类型" align="center" width="100" prop="subordinateObjectType"></el-table-column>
                  <el-table-column label="所属对象" align="center" width="100" prop="subordinateObject"></el-table-column>
                  <el-table-column label="产权" align="center" width="100" prop="propertyRight"></el-table-column>
                  <el-table-column label="维护部门" align="center" width="100" prop="maintenanceDepartment"></el-table-column>
                  <el-table-column label="所属工程" align="center" width="110" prop="projectBelong"></el-table-column>
                  <el-table-column label="固定资产编号" align="center" width="110" prop="fixedAssetsNumber"></el-table-column>
                  <el-table-column label="备注" align="center" width="120" prop="remark"></el-table-column>
                  <el-table-column label="分光器安装位置" align="center" width="130" prop="splitterMountingPosition"></el-table-column>
                  <el-table-column label="所属分光器端口" align="center" width="120" prop="splitterPort"></el-table-column>
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="表五-PON口分配信息表" name="sixth">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    列表
                  </p>
                  <div class="right">
                    <!-- <button style="width:130px;" @click="outputExcel">导出Excel</button> -->
                  </div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="tableSix"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column label="序号" align="center" width="100" type="index"></el-table-column>
                  <el-table-column label="区域" align="center" width="120" prop="col_1"></el-table-column>
                  <el-table-column label="镇区" align="center" width="120" prop="col_2"></el-table-column>
                  <el-table-column label="小区名称" align="center" width="150" prop="col_3"></el-table-column>
                  <el-table-column label="分光器（表三一级分光器）" align="center" width="150" prop="col_4"></el-table-column>
                  <el-table-column label="分光器型号" align="center" width="110" prop="col_5"></el-table-column>
                  <el-table-column label="分光器位置" align="center" width="150" prop="col_6"></el-table-column>
                  <el-table-column label="PON口" align="center" width="110" prop="col_7"></el-table-column>
                  <el-table-column label="所属楼宇" align="center" width="130" prop="col_8"></el-table-column>
                  <el-table-column label="OLT机房" align="center" width="130" prop="col_9"></el-table-column>
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="表六-标签配线表" name="seventh">
          <div class="material-manage">
            <div class="budget-material">
              <div class="search-header">
                <div class="left-title">
                  <p class="left-text">
                    <span class="iconfont">&#xe607;</span>
                    列表
                  </p>
                  <div class="right">
                    <!-- <button style="width:130px;" @click="outputExcel">导出Excel</button> -->
                  </div>
                </div>
              </div>
              <div class="table">
                <el-table
                  ref="multipleTable"
                  :data="tableSeven"
                  tooltip-effect="dark"
                  style="width: 1100px;margin:0 auto"
                  border
                >
                  <el-table-column width="180" align="center" prop="col_1">
                    <template slot="header" slot-scope="scope">{{tableHeader.col_1}}</template>
                  </el-table-column>
                  <el-table-column width="180" align="center" prop="col_2">
                    <template slot="header" slot-scope="scope">{{tableHeader.col_2}}</template>
                  </el-table-column>
                  <el-table-column align="center" width="180" prop="rowCode">
                    <template slot="header" slot-scope="scope">{{tableHeader.col_3}}</template>
                  </el-table-column>
                  <el-table-column align="center" width="180" prop="col_4">
                    <template slot="header" slot-scope="scope">{{tableHeader.col_4}}</template>
                  </el-table-column>
                  <el-table-column align="center" width="180" prop="col_5">
                    <template slot="header" slot-scope="scope">{{tableHeader.col_5}}</template>
                  </el-table-column>
                  <el-table-column align="center" width="180" prop="col_6">
                    <template slot="header" slot-scope="scope">{{tableHeader.col_6}}</template>
                  </el-table-column>
                  <el-table-column label="松套管" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?scope.row.webSgt:'蓝'}}</template>
                  </el-table-column>
                  <el-table-column label="1" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'蓝'}}</template>
                  </el-table-column>
                  <el-table-column label="2" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'橙'}}</template>
                  </el-table-column>
                  <el-table-column label="3" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'绿'}}</template>
                  </el-table-column>
                  <el-table-column label="4" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'棕'}}</template>
                  </el-table-column>
                  <el-table-column label="5" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'灰'}}</template>
                  </el-table-column>
                  <el-table-column label="6" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'白'}}</template>
                  </el-table-column>
                  <el-table-column label="松套管" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'蓝'}}</template>
                  </el-table-column>
                  <el-table-column label="7" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'蓝'}}</template>
                  </el-table-column>
                  <el-table-column label="8" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'橙'}}</template>
                  </el-table-column>
                  <el-table-column label="9" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'绿'}}</template>
                  </el-table-column>
                  <el-table-column label="10" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'棕'}}</template>
                  </el-table-column>
                  <el-table-column label="11" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'灰'}}</template>
                  </el-table-column>
                  <el-table-column label="12" align="center" width="80" prop>
                    <template slot-scope="scope">{{scope.row.webSgt?'':'白'}}</template>
                  </el-table-column>
                  <el-table-column label="备注" align="center" width="180" prop="col_over"></el-table-column>
                </el-table>
              </div>
            </div>
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      baseUrl: img_url,
      activeName: "first",
      a:"系统填报-项目列表-生成资料-表二",
      // 表一到表七 数据
      tableOne: [],
      tableTwo: [],
      tableThree: [],
      tableFour: [],
      tableFive: [],
      tableSix: [],
      tableSeven: [],
      // 表七 动态表头
      tableHeader: {},
      // 表七 后台返回数据最后一行的索引
      infoIndex: 0
    };
  },
  created() {},
  mounted() {
    this.oneDataInit();
  },
  methods: {
    //tab切换
    handleClick(tab, event) {
      switch (this.activeName) {
        case "first":
          this.oneDataInit();
          break;
        case "second":
          this.twoDataInit();
          break;
        case "third":
          this.threeDataInit();
          break;
        case "fourth":
          this.fourDataInit();
          break;
        case "fifth":
          this.fiveDataInit();
          break;
        case "sixth":
          this.sixDataInit();
          break;
        case "seventh":
          this.sevenDataInit();
          break;
      }
    },

    // 表一
    oneDataInit() {
      let that = this,
        suCb = res => {
          console.log("表一：", res);
          that.tableOne = that.deepClone(res.data.data);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/getStandardAddress",
          methods: "post",
          data: { proId: that.$route.query.proId },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 表二
    twoDataInit() {
      let that = this,
        suCb = res => {
          console.log("表二：", res);
          that.tableTwo = that.deepClone(res.data.data);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/getCoverageDeviceAddressTwo",
          methods: "post",
          data: { proId: that.$route.query.proId },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 表三
    threeDataInit() {
      let that = this,
        suCb = res => {
          console.log("表三：", res);
          that.tableThree = that.deepClone(res.data.data);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/getCoverageDeviceAddress",
          methods: "post",
          data: { parentId: that.$route.query.proId },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 表四
    fourDataInit() {
      let that = this,
        suCb = res => {
          console.log("表四：", res);
          that.tableFour = that.deepClone(res.data.data);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/getFirstOpticalSplitter",
          methods: "post",
          data: { proId: that.$route.query.proId },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 表五
    fiveDataInit() {
      let that = this,
        suCb = res => {
          console.log("表五：", res);
          that.tableFive = that.deepClone(res.data.data);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/getSecondOpticalSplitter",
          methods: "post",
          data: { proId: that.$route.query.proId },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 表六
    sixDataInit() {
      let that = this,
        suCb = res => {
          console.log("表六：", res);
          that.tableSix = that.deepClone(res.data.data);
        },
        erCb = res => {
          console.log(res);
        },
        req = {
          url: "/api/web/proProject/getPonTable",
          methods: "post",
          data: { proId: that.$route.query.proId },
          success: suCb,
          error: erCb
        };
      that.$https(req);
    },
    // 表七
    sevenDataInit() {
      let arr = [
        { rowCode: "a", col_4: "前期占用" },
        { rowCode: "b", col_4: "前期占用" },
        { rowCode: "c", col_4: "前期占用" },
        { rowCode: "d", col_4: "前期占用" },
        { rowCode: "e", col_4: "前期占用" },
        { rowCode: "f", col_4: "前期占用" },
        { rowCode: "g", col_4: "前期占用" },

        { rowCode: "h", col_4: "前期占用" },
        { rowCode: "i", col_4: "前期占用" },
        { rowCode: "j", col_4: "前期占用" },
        { rowCode: "k", col_4: "前期占用" },
        { rowCode: "l", col_4: "前期占用" },
        { rowCode: "m", col_4: "前期占用" },
        { rowCode: "n", col_4: "前期占用" },

        { rowCode: "o", col_4: "前期占用" },
        { rowCode: "p", col_4: "前期占用" },
        { rowCode: "q", col_4: "前期占用" },
        { rowCode: "r", col_4: "前期占用" },
        { rowCode: "s", col_4: "前期占用" },
        { rowCode: "t", col_4: "前期占用" },

        { rowCode: "u", col_4: "前期占用" },
        { rowCode: "v", col_4: "前期占用" },
        { rowCode: "w", col_4: "前期占用" },
        { rowCode: "x", col_4: "前期占用" },
        { rowCode: "y", col_4: "前期占用" },
        { rowCode: "z", col_4: "前期占用" }
      ];
      let that = this,
        suCb = function(res) {
          console.log(res);
          that.tableTitle = res.data.title;
          that.tableHeader = res.data.header;
          // 对返回结果进行排序
          res.data.data.sort((a, b) => {
            return a.rowCode - b.rowCode;
          });
          // 替换rowcode相当的项
          res.data.data.forEach(item => {
            arr.forEach((item1, index) => {
              if (item.rowCode == item1.rowCode) {
                arr[index] = item;
                that.infoIndex = index;
              }
            });
          });
          console.log(that.infoIndex);
          // 把最后一项之后替换成空闲
          for (let i = that.infoIndex + 1; i < res.data.col_total; i++) {
            arr[i].col_4 = "";
            arr[i].webSgt = "空闲";
          }
          console.log(arr);
          // 删除总数之外的行数
          that.tableSeven = arr.slice(0, res.data.col_total);

          console.log(that.tableSeven);
        },
        erCb = function(res) {
          console.log(res);
        },
        palyParam = {
          url: "/api/web/proProject/getLaberWiring",
          methods: "post",
          data: {
            proId: that.$route.query.proId
          },
          success: suCb,
          error: erCb
        };
      that.$https(palyParam);
    },
    // 导出excel
    outputExcel() {
      let that = this,
          suCb = res => {
            console.log("结果：", res);
            let a = document.createElement("a");
            a.href = that.baseUrl + res.data.data.url;
            a.download = res.data.data.fileName;
            a.target = '_blank'
            a.click();
            that.$msg("导出成功");
          },
          erCb = res => {
            console.log(res);
          },
          req = {
            url: "/api/web/sysFile/toProcessFeedBackTable2",
            methods: "post",
            data: { proId: that.$route.query.proId },
            success: suCb,
            error: erCb
          };
        that.$https(req);
    }
  },
  watch: {}
};
</script>
<style scoped>
.main {
  width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
  border: 1px solid #e4e4e4;
  font-size: 14px;
}
.main .nav {
  height: 40px;
  line-height: 40px;
  padding-left: 20px;
  text-align: left;
  background: #f3f3f3;
  color: #666;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 30px;
}
.step-container {
  margin-bottom: 60px;
}
.gcl {
  margin-bottom: 20px;
}
.tabs {
  width: 1060px;
  margin: 20px auto;
}
.budget {
  margin-top: 20px;
  width: 100%;
  overflow: hidden;
  background: #f8f8f8;
  height: 35px;
  line-height: 35px;
  font-size: 14px;
  border: 1px solid #e4e4e4;
  border-bottom: none;
  padding: 0 20px;
  box-sizing: border-box;
  font-size: 14px;
  color: #666;
}
.gcl .title {
  background: #f8f8f8;
  height: 35px;
  line-height: 35px;
  color: #666;
  padding: 0 20px;
  font-size: 14px;
  border: 1px solid #e4e4e4;
  border-bottom: none;
  text-align: left;
}
.budget .title {
  float: left;
}
.budget div:last-of-type {
  float: right;
}
.gcl .tabs {
  width: 1060px;
  margin: 20px;
  box-sizing: border-box;
}
.nav {
  background: #f8f8f8;
  height: 50px;
  font-size: 14px;
  line-height: 50px;
  border-bottom: 1px solid #e4e4e4;
  text-align: left;
  padding-left: 20px;
  font-size: 14px;
  color: #666;
}
.tables table {
  width: 660px;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
}
.budgetTable table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
}
.budgetTable table td {
  /* width: 500px; */
  height: 40px;
}
.tables table td {
  height: 44px;
}
.tables table td:nth-of-type(2n) {
  text-align: left;
  padding-left: 20px;
}
.tables table td:nth-of-type(2n + 1) {
  text-align: right;
  padding-right: 20px;
  width: 160px;
  background: #f9fafc;
}
.costManage {
  overflow: hidden;
  font-size: 14px;
}
.costManage .left,
.costManage .right {
  float: left;
}
.costManage .left {
  margin-right: 60px;
}
.costManage .cost {
  text-align: left;
  color: #949494;
  margin-bottom: 10px;
}
.costManage .left span,
.costManage .right span {
  display: inline-block;
  width: 100px;
  text-align: right;
  padding-right: 10px;
  height: 30px;
  color: #666;
  font-size: 12px;
}
.costManage .left span i,
.costManage .right span i {
  color: red;
  vertical-align: middle;
  font-style: normal;
  padding-right: 2px;
}
.costManage .left input,
.costManage .right input {
  height: 30px;
  padding-left: 5px;
  outline: none;
  border: 1px solid #e4e4e4;
  border-radius: 2px;
}

/* 下面是进度管理的样式 */
.step-container {
  margin: 20px auto;
}
.table-title p {
  font-family: "PingFangSC-Regular", "PingFang SC";
  font-weight: 400;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  font-size: 16px;
  color: #666;
  text-align: left;
  line-height: 40px;
}

.tables table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
}
.tables table td {
  height: 44px;
}
.tables table td:nth-of-type(2n) {
  text-align: left;
  padding-left: 20px;
  width: 332px;
}
.pipe-progress .tables table td:nth-of-type(2n),
.line-progress .tables table td:nth-of-type(2n),
.equipment-progress .tables table td:nth-of-type(2n) {
  width: 332px;
}
.tables table td:nth-of-type(2n + 1) {
  text-align: right;
  padding-right: 20px;
  width: 160px;
  background: #f9fafc;
}

.component-paging .table-bottom,
.component-paging .table-bottom,
.component-paging .table-bottom {
  width: 100%;
  margin-bottom: 20px;
}

.pipe-progress .table,
.line-progress .table,
.equipment-progress .table {
  margin-top: 20px;
}

/* 材料管理 */
.material-manage .search-header {
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 1);
  margin: 20px auto 0;
}

.material-manage .search-header .left-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(243, 243, 243, 1);
  height: 45px;
  box-sizing: border-box;
  border: 1px solid rgba(228, 228, 228, 1);
  border-bottom: 0;
}

.material-manage .search-header .left-title .left-text {
  width: 20%;
  color: #666;
  font-size: 14px;
  line-height: 45px;
  font-weight: 700;
  text-align: left;
  margin: 0 0 0 30px;
}

.material-manage .right {
  width: 70%;
  display: flex;
  justify-content: flex-end;
  margin-right: 30px;
}

.material-manage .right button {
  padding: 0 15px;
  height: 30px;
  margin: 6px 5px;
  line-height: 30px;
  font-size: 14px;
  color: #666;
  background-color: #fff;
  border: 1px solid #ccc;
}

.material-manage .right button:hover {
  background-color: #f3f3f3;
}

/* 资料归档 */
.data-back-sign,
.owner-data,
.design-check-data,
.process-manage-data,
.project-finish-data,
.official-data,
.move-system-data {
  margin: 20px auto;
}
.table-title-left {
  color: #1abc9c;
  font-size: 16px;
  float: right;
}

.gray {
  color: #ccc;
}

/* 删除按钮 */
.red {
  color: #48c9b0;
  font-size: 12px;
}

.data-back-sign .tables table td:nth-of-type(2n + 1) {
  text-align: right;
  padding-right: 20px;
  width: 110px;
  background: #f9fafc;
}

.move-system-msg .tables table td:nth-of-type(2n + 1) {
  text-align: right;
  padding-right: 20px;
  width: 140px;
  background: #f9fafc;
}

.table-title > div:last-of-type {
  float: right;
  margin: -45px 20px 10px;
}
.table-title > div:last-of-type span {
  display: inline-block;
  margin-left: 20px;
  padding: 5px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 4px;
}
.table-title > div:last-of-type span:first-of-type {
  border: 1px solid #e4e4e4;
  color: #666;
  background: #fff;
}
.table-title > div:last-of-type span:last-of-type {
  border: 1px solid #1abc9c;
  color: #fff;
  background: #1abc9c;
}

/* 工程量管理 按钮组 */
.btn_group {
  text-align: left;
  margin-bottom: 15px;
}

/* 工程量管理 底部 价格显示 */
.gcl_footer {
  text-align: right;
}

.gcl_footer .gcl_footer_top {
  margin-bottom: 10px;
  font-size: 18px;
}

.gcl_footer .gcl_footer_top span:nth-child(2n),
.gcl_footer .gcl_footer_bottom span:nth-child(2n) {
  color: #1abc9c;
}

.gcl_footer .gcl_footer_bottom {
  margin-bottom: 10px;
  font-size: 19px;
}

.budgetTable table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  padding: 0;
  border: none;
  font-size: 12px;
}
.budgetTable table td,
th {
  height: 40px;
}

th {
  background-color: #f9fafc;
}

/* 建项审批列表最外层容器 pro-amap Start*/
.pro-amap {
  widows: 100%;
}
/* 建项审批列表最外层容器 pro-amap End and 地图容器 Start */
.amap {
  width: 100%;
  height: 500px;
  position: relative;
}
#container {
  position: absolute;
  width: 100%;
  height: 100%;
}
/* 地图容器 End and 数据展示列表 Start */
.table {
  width: 100%;
  /* margin-top: 20px; */
}
.table-title {
  text-align: left;
  color: #949494;
  font-size: 16px;
}
.amap-all-table-header {
  display: flex;
  align-items: center;
  margin: 10px 0 20px;
}
.amap-all-table-btn {
  width: 120px;
  height: 30px;
  line-height: 30px;
  cursor: pointer;
  border: 1px solid #e4e4e4;
}
.amap-all-table-btn:not(:first-child) {
  margin-left: 20px;
}
.amap-all-table-btn-active {
  background: #1abc9c;
  color: #fff;
}
.amap-all-table-header-update {
  margin-left: 300px;
}
/* 数据展示列表 End */
</style>

<!-- 在全局中修改地图的css -->
<style>
.pro-amap .marker-container {
  position: relative;
}
.pro-amap .marker-container img {
  position: absolute;
}
.pro-amap .marker-container div:nth-child(2) {
  color: red;
  position: absolute;
  top: -20px;
  left: 0;
}
.pro-amap .marker-container div:nth-child(3) {
  height: 20px;
  line-height: 20px;
  padding: 3px 6px;
  background: #fff;
  border: 1px solid red;
  position: absolute;
  left: 6px;
  top: 6px;
}

.component-listHeader .search-header {
  width: 1100px;
  box-sizing: border-box;
  border: 1px solid rgba(228, 228, 228, 1);
  border-bottom: none;
  background-color: rgba(255, 255, 255, 1);
  margin: 20px auto 0;
}

.component-listHeader .search-header .left-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: rgba(243, 243, 243, 1);
  height: 45px;
  box-sizing: border-box;
}

.component-listHeader .search-header .left-title .left-text {
  width: 20%;
  color: #666;
  line-height: 45px;
  font-family: "微软雅黑";
  font-weight: 400;
  font-size: 12px;
  text-align: left;
  margin: 0 0 0 30px;
}

.component-listHeader .search-header .right {
  width: 70%;
  display: flex;
  justify-content: flex-end;
  margin-right: 10px;
}

.component-listHeader .search-header .right button {
  padding: 0 15px;
  height: 30px;
  width: 110px;
  margin: 6px 5px;
  line-height: 30px;
  font-size: 14px;
  color: #1abc9c;
  background-color: #fff;
  border: 1px solid #ccc;
}
.component-listHeader .search-header .right button:hover {
  background-color: #1abc9c;
  color: #fff;
}
.component-listHeader .search-header .right .right-select-margin {
  margin-top: 8px;
  margin-right: 8px;
}
</style>
